package com.city.parking.map;

import com.baidu.mapapi.map.offline.MKOLUpdateElement;

public class OfflineMapLocalItemModel{
 
    private String headerName;
    private boolean isActionBarDisplayed = false;
    private MKOLUpdateElement localItemInfo;
    
    public boolean isGroupHeader = false;
 
    public OfflineMapLocalItemModel(String title) {
        this.headerName = title;
        isGroupHeader = true;
    }
    
    public OfflineMapLocalItemModel(MKOLUpdateElement localItemInfo, boolean showActionBar) {
        super();
        this.localItemInfo = localItemInfo;
        this.isActionBarDisplayed = showActionBar;
    }
 
    public int getCityID() {
    	return this.localItemInfo.cityID;
    }
    
    public String getCityName() {
    	return this.localItemInfo.cityName;
    }
    
    public String getHeaderName() {
    	return this.headerName;
    }
    
    public int getPackSize() {
    	return this.localItemInfo.size;
    }
    
    public int getDownloadStatus() {
    	return this.localItemInfo.status;
    }
    
    public boolean showActionBar() {
    	return this.isActionBarDisplayed;
    }
    
    public void setActionBar(final boolean isActionBarVisible) {
    	this.isActionBarDisplayed = isActionBarVisible;
    }
    
    public MKOLUpdateElement getLocalItemInfo() {
    	return this.localItemInfo;
    }
}
